<template>
  <div class="item-box">
    <p class="title">订单信息</p>
    <div class="item">
      <div class="item-section1">
        <div class="item-section1-left">
          <p class="pay-description">
            <i class="iconfont icon-time "></i><span>{{item.package_name}}</span></p>
          <!--<span class="light-color">item.order_no</span>-->
        </div>
      </div>
      <div class="item-section2">
        <span>购买类型 : </span>
        <span class="light-color">续费 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   </span>
        <span> 流量套餐数量  </span>
        <span class="light-color">{{item.pay_num}}</span>
      </div>
      <div class="item-section3">
        <div class="item-section1-left">
          <span class="pay-time">{{new Date().toLocaleTimeString()}}</span>
        </div>
        <div class="item-section1-right">
          <span class="continue-color">合计:￥</span>
          <span class="danger-color">{{item.total_price}}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        name: "order",
        created(){
          this.item = JSON.parse(localStorage.getItem('package'))
        },
        data(){
          return {
            item:{}
          }
        }
    }
</script>

<style scoped>
  .title {
    line-height: 0.5rem;
    font-size: 0.13rem;
  }
  .item-box {
    padding: 0 0.15rem;
  }

  .item-box .underline-box3 {
    box-sizing: border-box;
    width: 100%;
    padding: 0 0.18rem;
  }

  .item-box .item {
    padding: 0.1rem;
    width: 100%;
    box-sizing: border-box;
    border: 1px dashed #bbbbbb;

  }

  .item-box .item > div {
    height: 0.26rem;
    line-height: 0.26rem;
  }

  .item-section1 {
    overflow: hidden;
  }

  .item-section1-left {
    float: left;
  }
  .item-section1-left .iconfont {
    font-size: 0.14rem;
    vertical-align: -0.01rem;
  }

  .item-section1-left img {
    width: 0.24rem;
    height: 0.24rem;
    vertical-align: middle;
  }

  .item-section1-left p {
    display: inline-block;
    vertical-align: middle;
  }

  .item-section1-right {
    float: right;
    font-size: 0.12rem;
    color: rgba(255, 152, 0, 1);
  }

  .item-section2 {
    text-align: left;
    font-size: 0.12rem;
  }

  .item-section3 {
    width: 100%;
    font-size: 0.12rem;
    overflow: hidden;
  }

  .pay-content {
    background-color: #ffffff;
    margin-top: 1.6rem;
    font-size: 0.14rem;
  }

  .pay-content > div {
    padding: 0 0.2rem;
  }

  .pay-description {
    margin-right: 0.08rem;
  }
  .pay-description span {
    margin-left: 0.1rem;
  }

  .pay-content .pay-title-box {
    border-bottom: 1px solid #bbbbbb;
  }

  .pay-content .pay-title-box > div {
    width: 100%;
    height: 0.44rem;
    line-height: 0.44rem;
    text-align: left;
  }
</style>
